python save list to json

75

python save list to json -

import json
with open('data.json', 'w') as f:
    json.dump(data, f)

Comments

Submit
0 Comments